package com.palfund.handler;

import android.app.Activity;
import android.os.Handler;
import android.os.Message;

import java.lang.ref.WeakReference;

/**
 * Created by clvc on 2017/7/28.
 * 真正的速度是看不见的 !
 * Today is today , we will go !
 */

public class PerfectHandler extends Handler {
    private final WeakReference<Activity> mReferences;

    public PerfectHandler(Activity activity) {
        mReferences = new WeakReference<Activity>(activity);
    }

    @Override
    public void handleMessage(Message msg) {
        Activity activity = mReferences.get();
        if (activity != null && msg.what == 0) {

        }
    }
}
